#include<iostream>
using namespace std;
#include"reverse_iterator.h"
#include"list.h"
using namespace MyList;
int main()
{
	 list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	lt.push_back(5);
	lt.push_back(6);
	lt.push_back(7);
	lt.push_back(8);
	lt.push_back(9);
	const list<int> lt2 = lt;
	list<int>::const_iterator it = lt2.begin();
	while (it != lt2.end())
	{
		cout << *it << ":" << lt2.size() << endl;
		it++;
	}
	cout << endl;
	list<int>::const_reverse_iterator rit = lt2.rbegin();
	while (!(rit==lt2.rend()))
	{
		cout << *rit << ":" << lt2.size() << endl;
		rit++;
	}
	return 0;
}